// 用户端 - 购物车
'use strict';

module.exports = app => {
  const { router, controller } = app;

  //用户地址查询
  router.get('/tube/user/queryShoppings', controller.cShoppings.wa_c_query);
  //用户默认地址查询
  router.get('/tube/user/queryDefAddr', controller.cShoppings.wa_c_queryDefaultAddress);


  //wc删除购物车单个商品
  router.delete('/tube/user/deleteOneShoppings', controller.cShoppings.wa_c_delete_one);
  //wc删除购物车批量商品
  router.delete('/tube/user/deleteManyShoppings', controller.cShoppings.wa_c_deleteMany);

  // 加入购物车
  router.post('/tube/user/createShopping', controller.cShoppings.wa_c_createShopping);



}